﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ECare.BUS;
using ECare.BUS.Data;

namespace ECare.Client.controls
{
    public partial class ucPlanCheckInfo : UserControl
    {
        public ucPlanCheckInfo()
        {
            InitializeComponent();

            this.Load += ucPlanCheckInfo_Load;
        }

        public PlanInfo Plan { get; set; }

        void ucPlanCheckInfo_Load(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            if (this.Plan != null)
            {this.lblStatus.Text = string.Format(this.lblStatus.Text, this.Plan.checkstatus.ToString());

                this.lblCheckInfo.Text = string.Format(this.lblCheckInfo.Text, UserInfoHelper.GetUserNameById(this.Plan.plan_check_by),
                    this.Plan.plan_check_time);

                  this.lblCheckRemark.Text = string.Format(this.lblCheckRemark.Text,this.Plan.plan_check_remark);

            }
        }
    }
}
